<?php
if(file_exists('resetpassword.php')) exit('please remove resetpassword.php first.');
if(file_exists('configs/config.inc.php')) require_once 'configs/config.inc.php';
if(!isset($akpath)) $akpath = './';
require_once $akpath.'include/common.inc.php';
if(ifinstalled()) {
	$file = 'admincp.php';
	if(!empty($_GET['file'])) $file = $_GET['file'];
	if(file_exists(AK_ROOT.'configs/custom.menu.xml')) {
		header("location:admincp.php?action=custom");
	} else {
		header("location:admincp.php");
	}
} else {
	header("location:install.php");
}
?>